package com.xavier.constants;

import cn.hutool.core.util.StrUtil;

public class RedisKey {

    /**
     * 获取token key
     */
    public static String getTokenKey(String token) {
        if (StrUtil.isEmpty(token)) {
            return "";
        }
        StringBuilder sbBuilder = new StringBuilder(80);
        sbBuilder.append("user:token:");
        sbBuilder.append(token);
        return sbBuilder.toString();
    }


}
